package net.y2t72.microblog.bean;

import java.io.Serializable;

/**
 * 微信实体类
 * 
 * @author Administrator
 * 
 */

public class Message implements Serializable{

	/**
	 * 版本号
	 */
	private static final long serialVersionUID = -5142577545466071780L;

	public Message() {
		super();
	}

	public Message(Member sendMember, Member receiveMember, String messageBody) {
		super();
		this.sendMember = sendMember;
		this.receiveMember = receiveMember;
		this.messageBody = messageBody;
	}

	public Message(int id, Member sendMember, Member receiveMember,
			String messageBody, String sendTime, int state) {
		super();
		this.id = id;
		this.sendMember = sendMember;
		this.receiveMember = receiveMember;
		this.messageBody = messageBody;
		this.sendTime = sendTime;
		this.state = state;
	}

	private int id;						//微信编号
	private Member sendMember;			//发送方信息
	private Member receiveMember;		//接收方信息
	private String messageBody;			//发送内容
	private String sendTime;			//发送时间 默认为当前时间
	private int state;					//信息状态 0：未读 1:已读 默认0

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Member getSendMember() {
		return sendMember;
	}

	public void setSendMember(Member sendMember) {
		this.sendMember = sendMember;
	}

	public Member getReceiveMember() {
		return receiveMember;
	}

	public void setReceiveMember(Member receiveMember) {
		this.receiveMember = receiveMember;
	}

	public String getMessageBody() {
		return messageBody;
	}

	public void setMessageBody(String messageBody) {
		this.messageBody = messageBody;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

}
